/*
 * @Description:
 * @Autor: dengyongliang
 * @Date: 2021-04-14 16:12:55
 * @LastEditors: dengyongliang
 * @LastEditTime: 2021-08-18 10:42:06
 */
import Layout from '@/layout'

export default {
  path: '/v2021',
  component: Layout,
  name: 'v2021',
  meta: {
    title: 'v2021版本',
    type: 'demo',
    icon: ''
  },
  children: [
    {
      path: 'loading',
      component: () => import('@/views/demos/v2021/loading'),
      name: 'loading',
      meta: { title: '$siLoading (等待)', type: 'demo' }
    },
    {
      path: 'confirm',
      component: () => import('@/views/demos/v2021/confirm'),
      name: 'confirm',
      meta: { title: '$siConfirm (确认弹框)', type: 'demo' }
    },
    {
      path: 'form',
      component: () => import('@/views/demos/v2021/form'),
      name: 'form',
      meta: { title: 'siForm (表单)', type: 'demo' }
    },
    {
      path: 'upload',
      component: () => import('@/views/demos/v2021/upload'),
      name: 'upload',
      meta: { title: 'siUpload (上传)', type: 'demo' }
    },
    {
      path: 'table',
      component: {
        render: h => h('router-view')
      },
      name: 'table',
      meta: { title: 'siTable(表格)', type: 'demo' },
      children: [
        {
          path: 'index',
          component: () => import('@/views/demos/v2021/table/table'),
          name: 'table',
          meta: {
            title: 'default (基础)',
            type: 'demo'
            // if do not set roles, means: this page does not require permission
          }
        },
        {
          path: 'inline-edit',
          component: () => import('@/views/demos/v2021/table/inline-edit'),
          name: 'inline-edit',
          meta: {
            title: 'edit (inline-edit表格)',
            type: 'demo'
            // if do not set roles, means: this page does not require permission
          }
        }
      ]
    },
    {
      path: 'search-form',
      component: () => import('@/views/demos/v2021/search-form'),
      name: 'search-form',
      meta: { title: 'siSearchForm (查询)', type: 'demo' }
    },
    {
      path: 'dialog',
      component: () => import('@/views/demos/v2021/dialog'),
      name: 'dialog',
      meta: { title: 'siDialog (弹框)', type: 'demo' }
    },
    {
      path: 'container',
      component: () => import('@/views/demos/v2021/container'),
      name: 'container',
      meta: { title: 'siContainer (容器)', type: 'demo' }
    },
    {
      path: 'detail',
      component: {
        render: h => h('router-view')
      },
      name: 'detail',
      meta: { title: 'siDetail(详情)', type: 'demo' },
      children: [
        {
          path: 'table',
          component: () => import('@/views/demos/v2021/detail/table'),
          name: 'detail-table',
          meta: {
            title: 'siDetail (表格详情)',
            type: 'demo'
            // if do not set roles, means: this page does not require permission
          }
        }
      ]
    },
    {
      path: 'step',
      component: () => import('@/views/demos/v2021/step'),
      name: 'step',
      meta: { title: 'siStep (步骤条)', type: 'demo' }
    }
  ]
}
